package com.edu.chat.web.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * QA知识项信息表
 * @TableName cs_article
 */
@TableName(value ="cs_article")
@Data
public class CsArticle extends BaseDo {
    /**
     * QA知识项的唯一标识符
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联到知识库的唯一标识符
     */
    @TableField(value = "library_id")
    private Long libraryId;

    /**
     * 关联到分类表的外键
     */
    @TableField(value = "category_id")
    private Long categoryId;

    /**
     * 内容的类型
     */
    @TableField(value = "content_type")
    private String contentType;

    /**
     * QA知识项的标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * QA知识项的内容
     */
    @TableField(value = "content")
    private String content;

}